import request from '@/utils/request'

// 查询栏目推荐列表
export function listRecommend(query) {
	return request({
		url: '/centers/recommend/list',
		method: 'get',
		params: query
	})
}

// 查询栏目推荐详细
export function getRecommend(id) {
	return request({
		url: '/centers/recommend/' + id,
		method: 'get'
	})
}

// 新增栏目推荐
export function addRecommend(data) {
	return request({
		url: '/centers/recommend',
		method: 'post',
		data: data
	})
}

// 修改栏目推荐
export function updateRecommend(data) {
	return request({
		url: '/centers/recommend',
		method: 'put',
		data: data
	})
}

// 删除栏目推荐
export function delRecommend(id) {
	return request({
		url: '/centers/recommend/' + id,
		method: 'delete'
	})
}
